summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLi Dongyang <lidongyang@novell.com>2011-03-24 11:24:27 +0100
committerroot <Chris Mason chris.mason@oracle.com>2011-03-28 11:37:46 +0200
commit5378e60734f5b7bfe1b43dc191aaf6131c1befe7 (patch)
treeb02c78e744a2a148b60a9c8046abef3f4381f544 /drivers
parentBtrfs: make btrfs_map_block() return entire free extent for each device of RA... (diff)
downloadlinux-5378e60734f5b7bfe1b43dc191aaf6131c1befe7.tar.xz
linux-5378e60734f5b7bfe1b43dc191aaf6131c1befe7.zip
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>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions