Skip to content

Commit c8e3146

Browse files
shifteetorvalds
authored andcommitted
fs/ntfs3: fix build without CONFIG_NTFS3_LZX_XPRESS
When CONFIG_NTFS3_LZX_XPRESS is not set then we get the following build error: fs/ntfs3/frecord.c:2460:16: error: unused variable ‘i_size’ Signed-off-by: Mark O'Donovan <shiftee@posteo.net> Fixes: 4fd6c08 ("fs/ntfs3: Use i_size_read and i_size_write") Tested-by: Chris Clayton <chris2553@googlemail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent d206a76 commit c8e3146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ntfs3/frecord.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2457,7 +2457,6 @@ int ni_read_frame(struct ntfs_inode *ni, u64 frame_vbo, struct page **pages,
24572457
struct ATTR_LIST_ENTRY *le = NULL;
24582458
struct runs_tree *run = &ni->file.run;
24592459
u64 valid_size = ni->i_valid;
2460-
loff_t i_size = i_size_read(&ni->vfs_inode);
24612460
u64 vbo_disk;
24622461
size_t unc_size;
24632462
u32 frame_size, i, npages_disk, ondisk_size;
@@ -2509,6 +2508,7 @@ int ni_read_frame(struct ntfs_inode *ni, u64 frame_vbo, struct page **pages,
25092508
err = -EOPNOTSUPP;
25102509
goto out1;
25112510
#else
2511+
loff_t i_size = i_size_read(&ni->vfs_inode);
25122512
u32 frame_bits = ni_ext_compress_bits(ni);
25132513
u64 frame64 = frame_vbo >> frame_bits;
25142514
u64 frames, vbo_data;

0 commit comments

Comments
 (0)