Displaying 5 results from an estimated 5 matches for "btrfs_issue_discard".
2009 Aug 30
0
[PATCH] Btrfs: improve the BIO_RW_DISCARD conditional compile func definition
The conditional compile func definition shall better not be defined this way:
static int btrfs_issue_discard()
{
#ifdef BIO_RW_DISCARD
...
#else
return 0;
#endif
}
instead, can be better done this way:
#ifndef BIO_RW_DISCARD
static int btrfs_issue_discard()
{
return 0;
}
#endif
#ifdef BIO_RW_DISCARD
static int btrfs_issue_discard()
{
...
}
#endif
2011 Feb 15
2
Building btrfs as a dkms module on Debian
...ith the patch, version.sh run on a shallow repository generates a "-dirty" version. I assume this is OK, even though there are no local changes.
- run version.sh
- dkms add -m btrfs -v git
- dkms build -m btrfs -v git fails with:
/var/lib/dkms/btrfs/git/build/extent-tree.c: In function ‘btrfs_issue_discard’:
/var/lib/dkms/btrfs/git/build/extent-tree.c:1747: error: ‘BLKDEV_IFL_WAIT’ undeclared (first use in this function)
/var/lib/dkms/btrfs/git/build/extent-tree.c:1747: error: (Each undeclared identifier is reported only once
/var/lib/dkms/btrfs/git/build/extent-tree.c:1747: error: for each function...
2010 May 31
1
dkms build error
...uild/super.c: In function ‘btrfs_fill_super’:
/var/lib/dkms/btrfs/git/build/super.c:446: warning: assignment from incompatible pointer type
CC [M] /var/lib/dkms/btrfs/git/build/ctree.o
CC [M] /var/lib/dkms/btrfs/git/build/extent-tree.o
/var/lib/dkms/btrfs/git/build/extent-tree.c: In function ‘btrfs_issue_discard’:
/var/lib/dkms/btrfs/git/build/extent-tree.c:1699: error: ‘DISCARD_FL_BARRIER’ undeclared (first use in this function)
/var/lib/dkms/btrfs/git/build/extent-tree.c:1699: error: (Each undeclared identifier is reported only once
/var/lib/dkms/btrfs/git/build/extent-tree.c:1699: error: for each functi...
2011 Jul 26
0
[PATCH] Btrfs: use bytes_may_use for all ENOSPC reservations
...space_info *info, u64 bytes,
int dump_block_groups);
+static int btrfs_update_reserved_bytes(struct btrfs_block_group_cache *cache,
+ u64 num_bytes, int reserve);
static noinline int
block_group_cache_done(struct btrfs_block_group_cache *cache)
@@ -1764,8 +1781,8 @@ static int btrfs_issue_discard(struct block_device *bdev,
return blkdev_issue_discard(bdev, start >> 9, len >> 9, GFP_NOFS, 0);
}
-static int btrfs_discard_extent(struct btrfs_root *root, u64 bytenr,
- u64 num_bytes, u64 *actual_bytes)
+int btrfs_discard_extent(struct btrfs_root *root, u64 bytenr, u64 num_byt...
2011 Jul 27
0
[PATCH] Btrfs: use bytes_may_use for all ENOSPC reservations V2
...space_info *info, u64 bytes,
int dump_block_groups);
+static int btrfs_update_reserved_bytes(struct btrfs_block_group_cache *cache,
+ u64 num_bytes, int reserve);
static noinline int
block_group_cache_done(struct btrfs_block_group_cache *cache)
@@ -1764,8 +1781,8 @@ static int btrfs_issue_discard(struct block_device *bdev,
return blkdev_issue_discard(bdev, start >> 9, len >> 9, GFP_NOFS, 0);
}
-static int btrfs_discard_extent(struct btrfs_root *root, u64 bytenr,
- u64 num_bytes, u64 *actual_bytes)
+int btrfs_discard_extent(struct btrfs_root *root, u64 bytenr, u64 num_byt...