aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/ioctl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/ioctl.c b/fs/ioctl.c
index 33a6b7ecb8b8..d152856c371b 100644
--- a/fs/ioctl.c
+++ b/fs/ioctl.c
@@ -226,6 +226,8 @@ static int ioctl_fiemap(struct file *filp, unsigned long arg)
226 return error; 226 return error;
227} 227}
228 228
229#ifdef CONFIG_BLOCK
230
229#define blk_to_logical(inode, blk) (blk << (inode)->i_blkbits) 231#define blk_to_logical(inode, blk) (blk << (inode)->i_blkbits)
230#define logical_to_blk(inode, offset) (offset >> (inode)->i_blkbits); 232#define logical_to_blk(inode, offset) (offset >> (inode)->i_blkbits);
231 233
@@ -342,6 +344,8 @@ int generic_block_fiemap(struct inode *inode,
342} 344}
343EXPORT_SYMBOL(generic_block_fiemap); 345EXPORT_SYMBOL(generic_block_fiemap);
344 346
347#endif /* CONFIG_BLOCK */
348
345static int file_ioctl(struct file *filp, unsigned int cmd, 349static int file_ioctl(struct file *filp, unsigned int cmd,
346 unsigned long arg) 350 unsigned long arg)
347{ 351{