Home
last modified time | relevance | path

Searched refs:nilfs (Results 1 – 11 of 11) sorted by relevance

/linux/fs/nilfs2/
H A Dthe_nilfs.c28 void nilfs_set_last_segment(struct the_nilfs *nilfs, in nilfs_set_last_segment() argument
31 spin_lock(&nilfs->ns_last_segment_lock); in nilfs_set_last_segment()
32 nilfs->ns_last_pseg = start_blocknr; in nilfs_set_last_segment()
33 nilfs->ns_last_seq = seq; in nilfs_set_last_segment()
34 nilfs->ns_last_cno = cno; in nilfs_set_last_segment()
36 if (!nilfs_sb_dirty(nilfs)) { in nilfs_set_last_segment()
37 if (nilfs->ns_prev_seq == nilfs->ns_last_seq) in nilfs_set_last_segment()
40 set_nilfs_sb_dirty(nilfs); in nilfs_set_last_segment()
42 nilfs->ns_prev_seq = nilfs->ns_last_seq; in nilfs_set_last_segment()
45 spin_unlock(&nilfs->ns_last_segment_lock); in nilfs_set_last_segment()
[all …]
H A Dsysfs.c26 struct the_nilfs *nilfs = container_of(kobj->parent, \
32 return a->show ? a->show(a, nilfs, buf) : 0; \
38 struct the_nilfs *nilfs = container_of(kobj->parent, \
44 return a->store ? a->store(a, nilfs, buf, len) : 0; \
66 static int nilfs_sysfs_create_##name##_group(struct the_nilfs *nilfs) \
73 subgroups = nilfs->ns_##parent_name##_subgroups; \
76 parent = &nilfs->ns_##parent_name##_kobj; \
85 static void nilfs_sysfs_delete_##name##_group(struct the_nilfs *nilfs) \
87 kobject_put(&nilfs->ns_##parent_name##_subgroups->sg_##name##_kobj); \
177 struct the_nilfs *nilfs; in nilfs_sysfs_create_snapshot_group() local
[all …]
H A Dthe_nilfs.h189 static inline void set_nilfs_##name(struct the_nilfs *nilfs) \
191 set_bit(THE_NILFS_##bit, &(nilfs)->ns_flags); \
193 static inline void clear_nilfs_##name(struct the_nilfs *nilfs) \
195 clear_bit(THE_NILFS_##bit, &(nilfs)->ns_flags); \
197 static inline int nilfs_##name(struct the_nilfs *nilfs) \
199 return test_bit(THE_NILFS_##bit, &(nilfs)->ns_flags); \
211 #define nilfs_clear_opt(nilfs, opt) \ argument
212 ((nilfs)->ns_mount_opt &= ~NILFS_MOUNT_##opt)
213 #define nilfs_set_opt(nilfs, opt) \ argument
214 ((nilfs)->ns_mount_opt |= NILFS_MOUNT_##opt)
[all …]
H A Dsuper.c39 #include "nilfs.h"
89 struct the_nilfs *nilfs = sb->s_fs_info; in nilfs_set_error() local
92 down_write(&nilfs->ns_sem); in nilfs_set_error()
93 if (!(nilfs->ns_mount_state & NILFS_ERROR_FS)) { in nilfs_set_error()
94 nilfs->ns_mount_state |= NILFS_ERROR_FS; in nilfs_set_error()
103 up_write(&nilfs->ns_sem); in nilfs_set_error()
126 struct the_nilfs *nilfs = sb->s_fs_info; in __nilfs_error() local
143 if (nilfs_test_opt(nilfs, ERRORS_RO)) { in __nilfs_error()
149 if (nilfs_test_opt(nilfs, ERRORS_PANIC)) in __nilfs_error()
180 struct the_nilfs *nilfs in nilfs_sync_super() local
236 nilfs_set_log_cursor(struct nilfs_super_block * sbp,struct the_nilfs * nilfs) nilfs_set_log_cursor() argument
254 struct the_nilfs *nilfs = sb->s_fs_info; nilfs_prepare_super() local
279 struct the_nilfs *nilfs = sb->s_fs_info; nilfs_commit_super() local
317 struct the_nilfs *nilfs = sb->s_fs_info; nilfs_cleanup_super() local
349 struct the_nilfs *nilfs = sb->s_fs_info; nilfs_move_2nd_super() local
432 struct the_nilfs *nilfs = sb->s_fs_info; nilfs_resize_fs() local
507 struct the_nilfs *nilfs = sb->s_fs_info; nilfs_put_super() local
528 struct the_nilfs *nilfs = sb->s_fs_info; nilfs_sync_fs() local
555 struct the_nilfs *nilfs = sb->s_fs_info; nilfs_attach_checkpoint() local
588 struct the_nilfs *nilfs = sb->s_fs_info; nilfs_freeze() local
603 struct the_nilfs *nilfs = sb->s_fs_info; nilfs_unfreeze() local
618 struct the_nilfs *nilfs = root->nilfs; nilfs_statfs() local
684 struct the_nilfs *nilfs = sb->s_fs_info; nilfs_show_options() local
747 struct nilfs_fs_context *nilfs = fc->fs_private; nilfs_parse_param() local
811 struct the_nilfs *nilfs = sb->s_fs_info; nilfs_setup_super() local
866 struct the_nilfs *nilfs = sb->s_fs_info; nilfs_store_magic() local
958 struct the_nilfs *nilfs = s->s_fs_info; nilfs_attach_snapshot() local
1006 struct the_nilfs *nilfs = sb->s_fs_info; nilfs_checkpoint_is_mounted() local
1048 struct the_nilfs *nilfs; nilfs_fill_super() local
1133 struct the_nilfs *nilfs = sb->s_fs_info; nilfs_reconfigure() local
[all...]
H A Drecovery.c94 static int nilfs_compute_checksum(struct the_nilfs *nilfs, in nilfs_compute_checksum() argument
99 unsigned int blocksize = nilfs->ns_blocksize; in nilfs_compute_checksum()
106 crc = crc32_le(nilfs->ns_crc_seed, in nilfs_compute_checksum()
112 bh = __bread(nilfs->ns_bdev, ++start, blocksize); in nilfs_compute_checksum()
137 int nilfs_read_super_root_block(struct the_nilfs *nilfs, sector_t sr_block, in nilfs_read_super_root_block() argument
146 bh_sr = __bread(nilfs->ns_bdev, sr_block, nilfs->ns_blocksize); in nilfs_read_super_root_block()
156 if (bytes == 0 || bytes > nilfs->ns_blocksize) { in nilfs_read_super_root_block()
161 nilfs, bh_sr, &crc, sizeof(sr->sr_sum), bytes, in nilfs_read_super_root_block()
178 return nilfs_warn_segment_error(nilfs->ns_sb, ret); in nilfs_read_super_root_block()
190 nilfs_read_log_header(struct the_nilfs *nilfs, sector_t start_blocknr, in nilfs_read_log_header() argument
[all …]
H A Difile.c184 struct the_nilfs *nilfs; in nilfs_ifile_read() local
205 nilfs = sb->s_fs_info; in nilfs_ifile_read()
206 err = nilfs_cpfile_read_checkpoint(nilfs->ns_cpfile, cno, root, ifile); in nilfs_ifile_read()
H A Dsegment.h240 int nilfs_salvage_orphan_logs(struct the_nilfs *nilfs, struct super_block *sb,
H A Dsegbuf.h163 int nilfs_write_logs(struct list_head *logs, struct the_nilfs *nilfs);
H A Dnilfs.h388 void nilfs_remove_all_gcinodes(struct the_nilfs *nilfs);
/linux/Documentation/filesystems/
H A Dnilfs2.rst25 The userland tools are included in nilfs-utils package, which is
31 :Project web page: https://nilfs.sourceforge.io/
32 :Download page: https://nilfs.sourceforge.io/en/download.html
33 :List info: http://vger.kernel.org/vger-lists.html#linux-nilfs
56 if nilfs gets an error on a barrier write, it will
166 Their manpages are included in the nilfs-utils package above.
/linux/
H A DMAINTAINERS19136 L: linux-nilfs@vger.kernel.org
19138 W: https://nilfs.sourceforge.io/