search for: use_count

Displaying 10 results from an estimated 10 matches for "use_count".

Did you mean: user_count
2007 Apr 18
0
[Bridge] [PATCH] (4/4) bridge forwarding table RCU
...net_bridge_fdb_entry *fdb - = hlist_entry(h, struct net_bridge_fdb_entry, hlist); - + hlist_for_each_entry_rcu(fdb, h, &br->hash[br_mac_hash(addr)], hlist) { if (!memcmp(fdb->addr.addr, addr, ETH_ALEN)) { - if (has_expired(br, fdb)) - goto ret_null; - - atomic_inc(&fdb->use_count); - read_unlock_bh(&br->hash_lock); + if (unlikely(has_expired(br, fdb))) + break; return fdb; } } - ret_null: - read_unlock_bh(&br->hash_lock); + return NULL; } +/* Interface used by ATM hook that keeps a ref count */ +struct net_bridge_fdb_entry *br_fdb_get(stru...
2012 Nov 01
0
[PATCH 1/5] Btrfs: fix joining the same transaction handler more than 2 times
If we flush inodes with pending delalloc in a transaction, we may join the same transaction handler more than 2 times. The reason is: Task use_count of trans handle commit_transaction 1 |-> btrfs_start_delalloc_inodes 1 |-> run_delalloc_nocow 1 |-> join_transaction 2 |-> cow_file_range 2 |-> join_transaction 3 In fact, cow_file_range needn''t join the transaction again because the caller have joine...
2009 Aug 24
0
[PATCH] Btrfs: proper metadata -ENOSPC handling
...(!cur_trans) { + u64 root_bytes = calculate_bytes_needed(root, 6); + cur_trans = kmem_cache_alloc(btrfs_transaction_cachep, GFP_NOFS); BUG_ON(!cur_trans); @@ -67,6 +97,7 @@ static noinline int join_transaction(struct btrfs_root *root) cur_trans->blocked = 0; cur_trans->use_count = 1; cur_trans->commit_done = 0; + cur_trans->bytes_reserved = 0; cur_trans->start_time = get_seconds(); cur_trans->delayed_refs.root.rb_node = NULL; @@ -82,6 +113,19 @@ static noinline int join_transaction(struct btrfs_root *root) extent_io_tree_init(&cur_trans->d...
2007 Aug 09
1
[RFC] All my fsync changes
...struct workqueue_struct *trans_wq #define BTRFS_ROOT_TRANS_TAG 0 #define BTRFS_ROOT_DEFRAG_TAG 1 -static void put_transaction(struct btrfs_transaction *transaction) +static void put_transaction(struct btrfs_transaction *transaction, + struct btrfs_root *root) { WARN_ON(transaction->use_count == 0); transaction->use_count--; @@ -39,6 +40,8 @@ static void put_transaction(struct btrfs WARN_ON(total_trans == 0); total_trans--; list_del_init(&transaction->list); + radix_tree_delete(&root->fs_info->transaction_map_radix, + (unsigned long)transaction->t...
2012 Aug 24
4
[PATCH] Btrfs: pass lockdep rwsem metadata to async commit transaction
...+ &ac->root->fs_info->sb->s_writers.lock_map[SB_FREEZE_FS-1], + 0, 1, _THIS_IP_); + btrfs_commit_transaction(ac->newtrans, ac->root); kfree(ac); } @@ -1257,6 +1265,14 @@ int btrfs_commit_transaction_async(struct btrfs_trans_handle *trans, atomic_inc(&cur_trans->use_count); btrfs_end_transaction(trans, root); + + /* + * Tell lockdep we''ve released the freeze rwsem, since the + * async commit thread will be the one to unlock it. + */ + rwsem_release(&root->fs_info->sb->s_writers.lock_map[SB_FREEZE_FS-1], + 1, _THIS_IP_); + schedu...
2015 Aug 30
2
Fuzzing complex programs
On Sun, Aug 30, 2015 at 9:11 AM, Brian Cain via llvm-dev < llvm-dev at lists.llvm.org> wrote: > > > On Sun, Aug 30, 2015 at 9:30 AM, Greg Stark via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> I have a project I want to do based on Libfuzzer. Is there a separate >> list for it or should I bring up any ideas for it here? >> >> No separate
2011 May 11
8
[PATCH 1/4] Btrfs: map the node block when looking for readahead targets
If we have particularly full nodes, we could call btrfs_node_blockptr up to 32 times, which is 32 pairs of kmap/kunmap, which _sucks_. So go ahead and map the extent buffer while we look for readahead targets. Thanks, Signed-off-by: Josef Bacik <josef@redhat.com> --- fs/btrfs/ctree.c | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git
2002 Feb 19
2
Dump Analysis -- when NCR server frozen by rsync
...NTED VFSP STREAMP VTYPE RDEV VDATA VFILOCKS VFLAG 187 0 c3cf7900 0 d - c3fb4ac0 0 root v_lck mutex lock: 0 type: excl sleep recur mtx sleep_on_busy: 0 flags: 0 db_flags: inited spinners: 0 processor: 0xffffffff use_count: 0 wake_one: 0 wake_all: 0 mpdebug: 0 locker: 0 unlocker: 0 v_piocount: 0 0> p 297 PROC TABLE SIZE = 3072 SLOT ADDR ST PID PPID PGID SID UID PRI CPU EVENT NAME FLAGS 297 c46ab400 s 29228 1 692 692 0 84 0 fe97da80 rsync load nwak 0> tr...
2011 Sep 10
12
WARNING: at fs/btrfs/inode.c:2193 btrfs_orphan_commit_root+0xb0/0xc0 [btrfs]()
Hi I am hitting this Warning reproducible, the workload is a ceph osd, kernel ist 3.1.0-rc5. Best Regards, martin [ 5472.099766] ------------[ cut here ]------------ [ 5472.099833] WARNING: at fs/btrfs/inode.c:2193 btrfs_orphan_commit_root+0xb0/0xc0 [btrfs]() [ 5472.099838] Hardware name: MS-96B3 [ 5472.099842] Modules linked in: radeon ttm drm_kms_helper drm i2c_algo_bit psmouse sp5100_tco
2011 Oct 06
26
[PATCH v0 00/18] btfs: Subvolume Quota Groups
This is a first draft of a subvolume quota implementation. It is possible to limit subvolumes and any group of subvolumes and also to track the amount of space that will get freed when deleting snapshots. The current version is functionally incomplete, with the main missing feature being the initial scan and rescan of an existing filesystem. I put some effort into writing an introduction into