diff options
Diffstat (limited to 'fs/reiserfs/file.c')
-rw-r--r-- | fs/reiserfs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/reiserfs/file.c b/fs/reiserfs/file.c index 373d862c3f87..99b6f329ba23 100644 --- a/fs/reiserfs/file.c +++ b/fs/reiserfs/file.c | |||
@@ -1288,7 +1288,7 @@ static ssize_t reiserfs_file_write(struct file *file, /* the file we are going t | |||
1288 | loff_t pos; // Current position in the file. | 1288 | loff_t pos; // Current position in the file. |
1289 | ssize_t res; // return value of various functions that we call. | 1289 | ssize_t res; // return value of various functions that we call. |
1290 | int err = 0; | 1290 | int err = 0; |
1291 | struct inode *inode = file->f_dentry->d_inode; // Inode of the file that we are writing to. | 1291 | struct inode *inode = file->f_path.dentry->d_inode; // Inode of the file that we are writing to. |
1292 | /* To simplify coding at this time, we store | 1292 | /* To simplify coding at this time, we store |
1293 | locked pages in array for now */ | 1293 | locked pages in array for now */ |
1294 | struct page *prepared_pages[REISERFS_WRITE_PAGES_AT_A_TIME]; | 1294 | struct page *prepared_pages[REISERFS_WRITE_PAGES_AT_A_TIME]; |
@@ -1335,7 +1335,7 @@ static ssize_t reiserfs_file_write(struct file *file, /* the file we are going t | |||
1335 | if (count == 0) | 1335 | if (count == 0) |
1336 | goto out; | 1336 | goto out; |
1337 | 1337 | ||
1338 | res = remove_suid(file->f_dentry); | 1338 | res = remove_suid(file->f_path.dentry); |
1339 | if (res) | 1339 | if (res) |
1340 | goto out; | 1340 | goto out; |
1341 | 1341 | ||