Li Dongyang
5378e60734
Btrfs: adjust btrfs_discard_extent() return errors and trimmed bytes
...
Callers of btrfs_discard_extent() should check if we are mounted with -o discard,
as we want to make fitrim to work even the fs is not mounted with -o discard.
Also we should use REQ_DISCARD to map the free extent to get a full mapping,
last we only return errors if
1. the error is not a EOPNOTSUPP
2. no device supports discard
Signed-off-by: Li Dongyang <lidongyang@novell.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
2011-03-28 05:37:46 -04:00
..
2011-02-07 14:06:18 -08:00
2010-05-25 10:34:58 -04:00
2009-10-05 09:44:45 -04:00
2011-03-17 14:21:18 -04:00
2009-01-06 09:38:55 -05:00
2011-02-06 07:19:19 -05:00
2010-12-22 23:15:50 +08:00
2011-03-28 05:37:37 -04:00
2011-03-28 05:37:46 -04:00
2011-03-28 05:37:33 -04:00
2010-05-25 10:34:50 -04:00
2011-03-17 14:21:41 -04:00
2011-03-28 05:37:46 -04:00
2011-01-17 15:13:08 -05:00
2011-02-07 14:06:18 -08:00
2008-09-25 11:04:06 -04:00
2011-03-28 05:37:33 -04:00
2011-03-17 14:21:37 -04:00
2011-02-14 16:21:37 -05:00
2010-12-22 23:15:45 +08:00
2011-03-28 05:37:46 -04:00
2011-03-28 05:37:35 -04:00
2011-03-28 05:37:33 -04:00
2011-03-25 19:08:08 -04:00
2010-10-29 09:26:35 -04:00
2009-06-10 11:29:53 -04:00
2010-05-25 10:34:50 -04:00
2011-03-28 05:37:35 -04:00
2011-03-28 05:37:42 -04:00
2011-03-28 05:37:41 -04:00
2011-01-16 11:25:54 -05:00
2010-12-22 23:15:47 +08:00
2010-03-30 22:02:32 +09:00
2009-03-09 11:45:38 -04:00
2011-02-16 15:37:58 -05:00
2010-12-22 23:15:47 +08:00
2011-03-28 05:37:33 -04:00
2010-12-22 23:15:45 +08:00
2010-12-09 13:57:15 -05:00
2011-01-28 16:40:37 -05:00
2008-09-25 11:03:56 -04:00
2010-03-30 22:02:32 +09:00
2010-03-08 16:26:50 -05:00
2011-03-28 05:37:37 -04:00
2011-03-28 05:37:35 -04:00
2009-01-05 21:25:51 -05:00
2011-03-28 05:37:33 -04:00
2010-03-07 17:04:49 -08:00
2011-03-28 05:37:35 -04:00
2010-12-23 08:49:17 +08:00
2010-10-29 15:14:37 -04:00
2011-03-28 05:37:35 -04:00
2010-05-25 10:34:53 -04:00
2008-09-25 15:41:59 -04:00
2008-11-19 21:17:22 -05:00
2011-03-28 05:37:45 -04:00
2011-03-28 05:37:45 -04:00
2011-03-17 14:21:41 -04:00
2010-05-21 18:31:18 -04:00
2010-12-22 23:15:50 +08:00