inode.c (8cbdd85bda499d028b8f128191f392d701e8e41d) inode.c (f66debf1b3755039680289d83fe7a92a4ad3d77d)
1/*
2 * (C) 2001 Clemson University and The University of Chicago
3 *
4 * See COPYING in top-level directory.
5 */
6
7/*
8 * Linux VFS inode operations.

--- 115 unchanged lines hidden (view full) ---

124 * will need to be able to use O_DIRECT on open in order to support
125 * AIO. Modeled after NFS, they do this too.
126 */
127
128static ssize_t orangefs_direct_IO(struct kiocb *iocb,
129 struct iov_iter *iter)
130{
131 gossip_debug(GOSSIP_INODE_DEBUG,
1/*
2 * (C) 2001 Clemson University and The University of Chicago
3 *
4 * See COPYING in top-level directory.
5 */
6
7/*
8 * Linux VFS inode operations.

--- 115 unchanged lines hidden (view full) ---

124 * will need to be able to use O_DIRECT on open in order to support
125 * AIO. Modeled after NFS, they do this too.
126 */
127
128static ssize_t orangefs_direct_IO(struct kiocb *iocb,
129 struct iov_iter *iter)
130{
131 gossip_debug(GOSSIP_INODE_DEBUG,
132 "orangefs_direct_IO: %s\n",
133 iocb->ki_filp->f_path.dentry->d_name.name);
132 "orangefs_direct_IO: %pD\n",
133 iocb->ki_filp);
134
135 return -EINVAL;
136}
137
138struct backing_dev_info orangefs_backing_dev_info = {
139 .name = "orangefs",
140 .ra_pages = 0,
141 .capabilities = BDI_CAP_NO_ACCT_DIRTY | BDI_CAP_NO_WRITEBACK,

--- 69 unchanged lines hidden (view full) ---

211 * Change attributes of an object referenced by dentry.
212 */
213int orangefs_setattr(struct dentry *dentry, struct iattr *iattr)
214{
215 int ret = -EINVAL;
216 struct inode *inode = dentry->d_inode;
217
218 gossip_debug(GOSSIP_INODE_DEBUG,
134
135 return -EINVAL;
136}
137
138struct backing_dev_info orangefs_backing_dev_info = {
139 .name = "orangefs",
140 .ra_pages = 0,
141 .capabilities = BDI_CAP_NO_ACCT_DIRTY | BDI_CAP_NO_WRITEBACK,

--- 69 unchanged lines hidden (view full) ---

211 * Change attributes of an object referenced by dentry.
212 */
213int orangefs_setattr(struct dentry *dentry, struct iattr *iattr)
214{
215 int ret = -EINVAL;
216 struct inode *inode = dentry->d_inode;
217
218 gossip_debug(GOSSIP_INODE_DEBUG,
219 "orangefs_setattr: called on %s\n",
220 dentry->d_name.name);
219 "orangefs_setattr: called on %pd\n",
220 dentry);
221
222 ret = inode_change_ok(inode, iattr);
223 if (ret)
224 goto out;
225
226 if ((iattr->ia_valid & ATTR_SIZE) &&
227 iattr->ia_size != i_size_read(inode)) {
228 ret = orangefs_setattr_size(inode, iattr);

--- 25 unchanged lines hidden (view full) ---

254 struct dentry *dentry,
255 struct kstat *kstat)
256{
257 int ret = -ENOENT;
258 struct inode *inode = dentry->d_inode;
259 struct orangefs_inode_s *orangefs_inode = NULL;
260
261 gossip_debug(GOSSIP_INODE_DEBUG,
221
222 ret = inode_change_ok(inode, iattr);
223 if (ret)
224 goto out;
225
226 if ((iattr->ia_valid & ATTR_SIZE) &&
227 iattr->ia_size != i_size_read(inode)) {
228 ret = orangefs_setattr_size(inode, iattr);

--- 25 unchanged lines hidden (view full) ---

254 struct dentry *dentry,
255 struct kstat *kstat)
256{
257 int ret = -ENOENT;
258 struct inode *inode = dentry->d_inode;
259 struct orangefs_inode_s *orangefs_inode = NULL;
260
261 gossip_debug(GOSSIP_INODE_DEBUG,
262 "orangefs_getattr: called on %s\n",
263 dentry->d_name.name);
262 "orangefs_getattr: called on %pd\n",
263 dentry);
264
265 ret = orangefs_inode_getattr(inode, 0, 0);
266 if (ret == 0) {
267 generic_fillattr(inode, kstat);
268
269 /* override block size reported to stat */
270 orangefs_inode = ORANGEFS_I(inode);
271 kstat->blksize = orangefs_inode->blksize;

--- 187 unchanged lines hidden ---
264
265 ret = orangefs_inode_getattr(inode, 0, 0);
266 if (ret == 0) {
267 generic_fillattr(inode, kstat);
268
269 /* override block size reported to stat */
270 orangefs_inode = ORANGEFS_I(inode);
271 kstat->blksize = orangefs_inode->blksize;

--- 187 unchanged lines hidden ---