diff options
author | Josef "Jeff" Sipek <jsipek@cs.sunysb.edu> | 2006-12-08 05:36:35 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:28:41 -0500 |
commit | 0f7fc9e4d03987fe29f6dd4aa67e4c56eb7ecb05 (patch) | |
tree | 51763269e44eb9bf4d0f8c529577489902850cf9 /fs/sync.c | |
parent | b65d34fd465f19fbe2f32f2205a9a06ca7c2bdeb (diff) |
[PATCH] VFS: change struct file to use struct path
This patch changes struct file to use struct path instead of having
independent pointers to struct dentry and struct vfsmount, and converts all
users of f_{dentry,vfsmnt} in fs/ to use f_path.{dentry,mnt}.
Additionally, it adds two #define's to make the transition easier for users of
the f_dentry and f_vfsmnt.
Signed-off-by: Josef "Jeff" Sipek <jsipek@cs.sunysb.edu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/sync.c')
-rw-r--r-- | fs/sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -94,7 +94,7 @@ long do_fsync(struct file *file, int datasync) | |||
94 | * livelocks in fsync_buffers_list(). | 94 | * livelocks in fsync_buffers_list(). |
95 | */ | 95 | */ |
96 | mutex_lock(&mapping->host->i_mutex); | 96 | mutex_lock(&mapping->host->i_mutex); |
97 | err = file->f_op->fsync(file, file->f_dentry, datasync); | 97 | err = file->f_op->fsync(file, file->f_path.dentry, datasync); |
98 | if (!ret) | 98 | if (!ret) |
99 | ret = err; | 99 | ret = err; |
100 | mutex_unlock(&mapping->host->i_mutex); | 100 | mutex_unlock(&mapping->host->i_mutex); |
@@ -223,7 +223,7 @@ asmlinkage long sys_sync_file_range(int fd, loff_t offset, loff_t nbytes, | |||
223 | if (!file) | 223 | if (!file) |
224 | goto out; | 224 | goto out; |
225 | 225 | ||
226 | i_mode = file->f_dentry->d_inode->i_mode; | 226 | i_mode = file->f_path.dentry->d_inode->i_mode; |
227 | ret = -ESPIPE; | 227 | ret = -ESPIPE; |
228 | if (!S_ISREG(i_mode) && !S_ISBLK(i_mode) && !S_ISDIR(i_mode) && | 228 | if (!S_ISREG(i_mode) && !S_ISBLK(i_mode) && !S_ISDIR(i_mode) && |
229 | !S_ISLNK(i_mode)) | 229 | !S_ISLNK(i_mode)) |