summaryrefslogtreecommitdiffstats
path: root/fs/fat/fat.h
diff options
context:
space:
mode:
authorWentao Wang2018-08-22 06:59:41 +0200
committerLinus Torvalds2018-08-22 19:52:50 +0200
commitf663b5b38fffeb31841f8bfaf0ef87a445b0ffee (patch)
tree6232b88fd6bad2fff876a2e855642e329b7cc4a4 /fs/fat/fat.h
parentreiserfs: fix broken xattr handling (heap corruption, bad retval) (diff)
downloadkernel-qcow2-linux-f663b5b38fffeb31841f8bfaf0ef87a445b0ffee.tar.gz
kernel-qcow2-linux-f663b5b38fffeb31841f8bfaf0ef87a445b0ffee.tar.xz
kernel-qcow2-linux-f663b5b38fffeb31841f8bfaf0ef87a445b0ffee.zip
fat: add FITRIM ioctl for FAT file system
Add FITRIM ioctl for FAT file system [witallwang@gmail.com: use u64s] Link: http://lkml.kernel.org/r/87h8l37hub.fsf@mail.parknet.co.jp [hirofumi@mail.parknet.co.jp: bug fixes, coding style fixes, add signal check] Link: http://lkml.kernel.org/r/87fu10anhj.fsf@mail.parknet.co.jp Signed-off-by: Wentao Wang <witallwang@gmail.com> Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/fat/fat.h')
-rw-r--r--fs/fat/fat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fat/fat.h b/fs/fat/fat.h
index 8fc1093da47d..154ae54a6b3a 100644
--- a/fs/fat/fat.h
+++ b/fs/fat/fat.h
@@ -357,6 +357,7 @@ extern int fat_alloc_clusters(struct inode *inode, int *cluster,
int nr_cluster);
extern int fat_free_clusters(struct inode *inode, int cluster);
extern int fat_count_free_clusters(struct super_block *sb);
+extern int fat_trim_fs(struct inode *inode, struct fstrim_range *range);
/* fat/file.c */
extern long fat_generic_ioctl(struct file *filp, unsigned int cmd,