commit | 6128927db9aa260371120dbb0855a1d300c16b55 | [log] [tgz] |
---|---|---|
author | Ethan Chen <intervigil@gmail.com> | Tue Aug 13 18:42:12 2013 -0700 |
committer | Ethan Chen <intervigil@gmail.com> | Tue Aug 13 18:42:12 2013 -0700 |
tree | 3f53f083ff2a6a6d06f56f0db39ca68b5af6873d | |
parent | c0f299bc711c6d6b3cd54dca633b6ea85dea915f [diff] [blame] |
ext4: disable FITRIM Change-Id: I7777af9ff84df286fd8b221e1de1b028c3f349b6
diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c index 9727522..7ec8c67 100644 --- a/fs/ext4/ioctl.c +++ b/fs/ext4/ioctl.c
@@ -402,6 +402,7 @@ case FITRIM: { +#ifdef CONFIG_ENABLE_FITRIM struct request_queue *q = bdev_get_queue(sb->s_bdev); struct fstrim_range range; int ret = 0; @@ -432,6 +433,7 @@ if (copy_to_user((struct fstrim_range __user *)arg, &range, sizeof(range))) return -EFAULT; +#endif return 0; }