diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2008-06-24 10:50:14 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2008-07-26 20:53:16 -0400 |
commit | 2f1936b87783a3a56c9441b27b9ba7a747f11e8e (patch) | |
tree | 024a0f3da74ba6365f209d03685133760146149b /mm/filemap_xip.c | |
parent | c82e42da8a6b2f3a85dc4d4278cb8238702f8f64 (diff) |
[patch 3/5] vfs: change remove_suid() to file_remove_suid()
All calls to remove_suid() are made with a file pointer, because
(similarly to file_update_time) it is called when the file is written.
Clean up callers by passing in a file instead of a dentry.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'mm/filemap_xip.c')
-rw-r--r-- | mm/filemap_xip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/filemap_xip.c b/mm/filemap_xip.c index 3e744abcce9d..98a3f31ccd6a 100644 --- a/mm/filemap_xip.c +++ b/mm/filemap_xip.c | |||
@@ -380,7 +380,7 @@ xip_file_write(struct file *filp, const char __user *buf, size_t len, | |||
380 | if (count == 0) | 380 | if (count == 0) |
381 | goto out_backing; | 381 | goto out_backing; |
382 | 382 | ||
383 | ret = remove_suid(filp->f_path.dentry); | 383 | ret = file_remove_suid(filp); |
384 | if (ret) | 384 | if (ret) |
385 | goto out_backing; | 385 | goto out_backing; |
386 | 386 | ||