aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/file.c
diff options
context:
space:
mode:
authorSven Wegener <sven.wegener@stealer.net>2008-07-30 16:54:26 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:05 -0400
commit0ee0fda06b943d7ef65f3cec50ab9d427a2baf97 (patch)
tree342ac5337dc72cf18b683f7f79b497db98a6062e /fs/btrfs/file.c
parentbcc63abbf3e9bf948a1b0129b3e6120ec7d7f698 (diff)
Btrfs: Add compatibility for kernels >= 2.6.27-rc1
Add a couple of #if's to follow API changes. Signed-off-by: Sven Wegener <sven.wegener@stealer.net> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r--fs/btrfs/file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c
index 412ab4a26382..388ac397c2c8 100644
--- a/fs/btrfs/file.c
+++ b/fs/btrfs/file.c
@@ -886,7 +886,11 @@ static ssize_t btrfs_file_write(struct file *file, const char __user *buf,
886#ifdef REMOVE_SUID_PATH 886#ifdef REMOVE_SUID_PATH
887 err = remove_suid(&file->f_path); 887 err = remove_suid(&file->f_path);
888#else 888#else
889# if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,26)
890 err = file_remove_suid(file);
891# else
889 err = remove_suid(fdentry(file)); 892 err = remove_suid(fdentry(file));
893# endif
890#endif 894#endif
891 if (err) 895 if (err)
892 goto out_nolock; 896 goto out_nolock;