search for: close_cur_inode_file

Displaying 2 results from an estimated 2 matches for "close_cur_inode_file".

2013 Oct 25
1
[PATCH] Btrfs: stop using vfs_read in send
...if (IS_ERR(filp)) { - ret = PTR_ERR(filp); - goto out; - } - sctx->cur_inode_filp = filp; - -out: - /* - * no xxxput required here as every vfs op - * does it by itself on failure - */ - return ret; -} - -/* - * Closes the struct file that was created in open_cur_inode_file - */ -static int close_cur_inode_file(struct send_ctx *sctx) -{ - int ret = 0; - - if (!sctx->cur_inode_filp) - goto out; - - ret = filp_close(sctx->cur_inode_filp, NULL); - sctx->cur_inode_filp = NULL; - -out: - return ret; -} - -/* * Sends a BTRFS_SEND_C_SUBVOL command/item to userspace */ static int send_subvol_begin(...
2013 Apr 07
2
"btrfs send" fails with having too many open fd's
Hi there, i''m trying to send/receive a snapshot of my home dir for some time now, but in the end it always fails because the maximum number of open fd''s is exceeded. Kern log says: "6,7226,15012711248,-;VFS: file-max limit 799969 reached" My setup is as follows: Kernel: 3.9-rc5 btrfs-progs: compiled from git commit: commit