Displaying 20 results from an estimated 51 matches for "inode_cache".
2009 Feb 13
44
[PATCH 0/40] ocfs2: Detach ocfs2 metadata I/O from struct inode
The following series of patches attempts to detach metadata I/O from
struct inode. They are currently tied together pretty tightly.
Metadata reads happen via the ocfs2_read_blocks() functions, writes via
both jbd2 and ocfs2_write_blocks().
- Each inode has a cache of associated metadata blocks stored on its
ip_metadata_cache member. The ocfs2_read/write_blocks() functions
take a struct
2013 Oct 07
2
Some questions after devices addition to existing raid 1 btrfs filesystem
...grity check''
that I should do on the filesystem now that the balance is done?
- also, I ran the command while some of the btrfs subvolumes were
mounted (as well as the btrfs_root/ of course), does this impact on
the balance job?
- the mounted btrfs devices were mounted using -o
space_cache,inode_cache but the btrfs_root/ was not, also, does this
impact on the balance job?
- about those options, a few months ago, I oftent had
btrfs-cache-1/btrfs-endio-met processes taking some cpu/hd time. I
was advised to mount -o space_cache,inode_cache, which seems to have
quiet the processes down. Are those...
2013 Mar 10
1
[PATCH] fs: fs2fs: Replaced calls to kmalloc and memcpy with kmemdup
...struct ocfs2_dinode *) bh->b_data;
- alloc_copy = kmalloc(bh->b_size, GFP_NOFS);
+ alloc_copy = kmemdup(alloc, bh->b_size, GFP_NOFS);
if (!alloc_copy) {
status = -ENOMEM;
goto out_commit;
}
- memcpy(alloc_copy, alloc, bh->b_size);
status = ocfs2_journal_access_di(handle, INODE_CACHE(local_alloc_inode),
bh, OCFS2_JOURNAL_ACCESS_WRITE);
@@ -1244,13 +1243,12 @@ static int ocfs2_local_alloc_slide_window(struct ocfs2_super *osb,
* local alloc shutdown won't try to double free main bitmap
* bits. Make a copy so the sync function knows which bits to
* free. */
- a...
2012 Apr 09
0
[PATCH] Btrfs-progs: make btrfsck aware of free space inodes
The new xfstests will run fsck against the volume to make sure we didn''t
introduce any inconsistencies, which is nice except we will error out
immediately if we mount with inode_cache. We need to make btrfsck skip the
special free space cache items and then just assume that we have a link for
the free space cache inode item. This makes btrfsck pass with success on a
fs with inode cache items. Thanks,
Signed-off-by: Josef Bacik <josef@redhat.com>
---
btrfsck.c | 7 +...
2012 Oct 21
3
unrecognized mount option 'compression=lzo' and defragment -c errors
Hi,
I planned to boost my btrfs performance today. here some errors I met:
my ''btrfs filesystem show'' result:
~ # btrfs filesystem show
failed to read /dev/sr0
Label: none uuid: 9b9aa9d9-760e-445c-a0ab-68e102d9f02e
Total devices 1 FS bytes used 36.59GB
devid 1 size 49.52GB used 49.52GB path /dev/sda6
Label: none uuid: 559dec06-4fd0-47c1-97b8-cc4fa6153fa0
2013 Jun 20
2
[PATCH V2] ocfs2: need rollback when journal_access failed in ocfs2_orphan_add()
...+ /*
+ * We're going to journal the change of i_flags and i_orphaned_slot.
+ * It's safe anyway, though some callers may duplicate the journaling.
+ * Journaling within the func just make the logic look more
+ * straightforward.
+ */
+ status = ocfs2_journal_access_di(handle,
+ INODE_CACHE(inode),
+ fe_bh,
+ OCFS2_JOURNAL_ACCESS_WRITE);
+ if (status < 0) {
+ mlog_errno(status);
+ goto leave;
+ }
+
/* we're a cluster, and nlink can change on disk from
* underneath us... */
orphan_fe = (struct ocfs2_dinode *) orphan_dir_bh->b_data;
@@ -2026,22 +2041,7 @@ st...
2009 Mar 27
42
[PATCH 00/42] ocfs2: Add reflink file support. V1
Hi all,
So I have finally finished the v1 of reflink for ocfs2. It has some
bugs that I am still investigating, but the schema is almost there. So
I'd like to send it out first for review. And Tristan and I will
continue to work on the stability of the code.
The general information for reflink, please see
http://oss.oracle.com/osswiki/OCFS2/DesignDocs/Reflink.
For the design doc, please
2009 Apr 03
42
[PATCH 00/42] ocfs2: Add reflink file support. V2
Hi all,
Change from v1 to v2: bug fix and metadata/credits reservation
improvement.
The general information for reflink, please see
http://oss.oracle.com/osswiki/OCFS2/DesignDocs/Reflink.
For the design doc, please see
http://oss.oracle.com/osswiki/OCFS2/DesignDocs/RefcountTrees
http://oss.oracle.com/osswiki/OCFS2/DesignDocs/ReflinkOperation
2013 Jun 05
8
btrfs raid1 on 16TB goes read-only after "btrfs: block rsv returned -28"
Dear Devs,
I have x4 4TB HDDs formatted with:
mkfs.btrfs -L bu-16TB_0 -d raid1 -m raid1 /dev/sd[cdef]
/etc/fstab mounts with the options:
noatime,noauto,space_cache,inode_cache
All on kernel 3.8.13.
Upon using rsync to copy some heavily hardlinked backups from ReiserFS,
I''ve seen:
The following "block rsv returned -28" is repeated 7 times until there
is a call trace for:
"WARNING: at fs/btrfs/super.c:256 __btrfs_abort_transaction+0x3d/0xad()...
2009 Apr 30
42
[PATCH 00/39] ocfs2: Add reflink file support. V3
Hi all,
So I have finally finished the v3 of reflink for ocfs2. The biggest
change is that we support 64bit cluster offset now(Thank Mark and Joel
for it).
[View]
http://oss.oracle.com/git/?p=tma/linux-2.6.git;a=shortlog;h=refcount
[Pull]
git://oss.oracle.com/git/tma/linux-2.6.git refcount
The general information for reflink, please see
http://oss.oracle.com/osswiki/OCFS2/DesignDocs/Reflink.
2012 Oct 16
0
Free space cache writeback issue
...ve hit an issue with the free space cache. It looks like we miss writing
everything to disk on unmount under rough conditions.
Setup: git head cmason/master, /dev/sdv1 is a 55MB partition on an SSD. Run the
following script:
--
DEV=/dev/sdv1
MP=/mnt/scratch
umount $MP
mkfs.btrfs -M $DEV
mount -o inode_cache $DEV $MP
cat /dev/urandom | head -c 654321 > $MP/1
mkdir $MP/2
mv $MP/1 $MP/2/1
btrfs subvol snap $MP $MP/@1
rm $MP/2/1
umount $MP
mount -o inode_cache $DEV $MP
cat /dev/urandom | head -c 654321 > $MP/tempname-1
ls -li $MP/@1/2/1 $MP/tempname-1
--
Actual result:
> 257 -rw-r--r-- 1 ro...
2012 Mar 02
1
nocow flags
...ith nodatacow.
I''m using this as a workaround since subvolumes can''t be mounted with different options simultaneously. ie. one with COW, one with nodatacow
Any ideas why the flags are being ignored?
I''m running 32bit 3.3rc4 with noatime,nodatasum,space_cache,autodefrag,inode_cache on a 3 disk RAID0 data RAID1 metadata filesystem.
Thanks,
Kyle
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
2011 Nov 11
1
[PATCH] btrfs: rename the option to nospace_cache
...ions(+), 2 deletions(-)
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 629281c..8bd9d6d 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -197,7 +197,7 @@ static match_table_t tokens = {
{Opt_subvolrootid, "subvolrootid=%d"},
{Opt_defrag, "autodefrag"},
{Opt_inode_cache, "inode_cache"},
- {Opt_no_space_cache, "no_space_cache"},
+ {Opt_no_space_cache, "nospace_cache"},
{Opt_recovery, "recovery"},
{Opt_err, NULL},
};
@@ -711,7 +711,7 @@ static int btrfs_show_options(struct seq_file *seq, struct vfsmount *vfs)
if (btrfs_...
2012 Jun 08
2
btrfs filesystems can only be mounted after an unclean shutdown if btrfsck is run and immediately killed!
...trfs: enabling inode map caching
[ 10.433892] btrfs: disk space caching is enabled
[ 10.434930] btrfs: failed to read the system array on sdb
[ 10.435945] btrfs: open_ctree failed
fstab:
UUID=1e7c18a4-02d6-44b1-8eaf-c01378009cd3 /storage/btrfs btrfs
noatime,compress-force=zlib,space_cache,inode_cache 0 0
UUID=7f7be913-e359-400f-8bdb-7ef48aad3f03 /storage/btrfs2 btrfs
noatime,compress-force=zlib,space_cache,inode_cache 0 0
The funny thing is that if i run btrfsck for one second on the first
filesystem and then kill it with ctrl-c, then both filesystems can be
mounted without any problems!...
2023 Feb 17
1
[PATCH] ocfs2: fix defrag path triggering jbd2 ASSERT
...fs2/move_extents.c
index 192cad0662d8..6251748c695b 100644
--- a/fs/ocfs2/move_extents.c
+++ b/fs/ocfs2/move_extents.c
@@ -105,14 +105,6 @@ static int __ocfs2_move_extent(handle_t *handle,
*/
replace_rec.e_flags = ext_flags & ~OCFS2_EXT_REFCOUNTED;
- ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode),
- context->et.et_root_bh,
- OCFS2_JOURNAL_ACCESS_WRITE);
- if (ret) {
- mlog_errno(ret);
- goto out;
- }
-
ret = ocfs2_split_extent(handle, &context->et, path, index,
&replace_rec, context->meta_ac,
&context->dealloc);
@@ -121,8 +113...
2012 Sep 09
13
enquiry about defrag
Hi all,
i am new on btrfs, i am testing KVM on btrfs (host: kernel x86-64 3.5.3), the performance is reasonable.
I have two question on defrag, can someone help me?
1. According to btrfs wiki, defragment a COW file will produce two unrelated files.
Does it apply to the "autodefrag" mount option?
2. Is there any command for the fragmentation status of a file/dir ? e.g. fragment
2012 Jun 15
6
[PATCH] Btrfs: add "nocompress" mount option
...) ((o) &= ~BTRFS_MOUNT_##opt)
#define btrfs_set_opt(o, opt) ((o) |= BTRFS_MOUNT_##opt)
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 0874dba..a78a6cf 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -280,7 +280,7 @@ enum {
Opt_enospc_debug, Opt_subvolrootid, Opt_defrag, Opt_inode_cache,
Opt_no_space_cache, Opt_recovery, Opt_skip_balance,
Opt_check_integrity, Opt_check_integrity_including_extent_data,
- Opt_check_integrity_print_mask, Opt_fatal_errors,
+ Opt_check_integrity_print_mask, Opt_fatal_errors, Opt_nocompress
Opt_err,
};
@@ -299,6 +299,7 @@ static match_table_t t...
2011 Sep 01
1
No buffer space available - loses network connectivity
...S OBJ/SLAB CACHE SIZE NAME
664000 620290 93% 0.09K 16600 40 66400K buffer_head
409950 408396 99% 0.21K 22775 18 91100K dentry_cache
343056 340307 99% 0.08K 7147 48 28588K selinux_inode_security
338590 336756 99% 0.74K 67718 5 270872K ext3_inode_cache
143665 143363 99% 0.06K 2435 59 9740K size-64
99540 99407 99% 0.25K 6636 15 26544K size-256
96450 96447 99% 0.12K 3215 30 12860K size-128
60858 60858 100% 0.52K 8694 7 34776K radix_tree_node
12420 11088 89% 0.16K 540...
2007 Feb 15
2
Re: [Linux-HA] OCFS2 - Memory hog?
...4_delegations 0 0 596 13 2
nfsd4_stateids 0 0 72 53 1
nfsd4_files 0 0 36 101 1
nfsd4_stateowners 0 0 344 11 1
rpc_buffers 8 8 2048 2 1
rpc_tasks 8 15 256 15 1
rpc_inode_cache 0 0 512 7 1
ocfs2_lock 152 203 16 203 1
ocfs2_inode_cache 12484 12536 896 4 1
ocfs2_uptodate 1381 1469 32 113 1
ocfs2_em_ent 37005 37406 64 59 1
dlmfs_inode_cache 1 6 640 6 1
dlm_mle_cache...
2012 Feb 09
7
Freeing space over reboot question
Glück Auf!
I use now kernel 3.2. The filesystem was originally created under 2.6.39 on 1 whole hdd, mounted with "noatime,nodiratime,inode_cache". I use it for backups: rsync the whole system to a subvolume, snapshot it and then delete some tempfiles in the snapshot, which are 90% of the full-backup, all once a day. In figures: on this 1 TB hdd is the full-backup with around 600 GiB and 10 to 20 snapshots with around 30 GiB each, all t...