kernel-hacking-2024-linux-s.../fs/ubifs
Artem Bityutskiy 074bcb9b5c UBIFS: simplify replay
This patch simplifies the replay code and makes it smaller. First of all, we
can notice that we do not really need to create bud replay entries and insert
them to the replay tree, because the only reason we do this is to set buds
lprops correctly at the end. Instead, we can just walk the list of buds at the
very end and set lprops for each bud. This allows us to get rid of whole
'insert_ref_node()' function, the 'REPLAY_REF' flag, and several fields in
'struct replay_entry'. Then we can also notice that we do not need the 'flags'
'struct replay_entry' field, because there is only one flag -
'REPLAY_DELETION'. Instead, we can just add a 'deletion' bit fields. As a
result, this patch deletes much more lines that in adds.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2011-05-16 10:31:40 +03:00
..
budget.c UBIFS: introduce a separate structure for budgeting info 2011-05-13 19:23:53 +03:00
commit.c UBIFS: introduce a separate structure for budgeting info 2011-05-13 19:23:53 +03:00
compress.c
debug.c UBIFS: fix debugging FS checking failure 2011-05-13 19:23:57 +03:00
debug.h UBIFS: dump the stack on errors in failure mode too 2011-05-13 19:23:56 +03:00
dir.c UBIFS: introduce a separate structure for budgeting info 2011-05-13 19:23:53 +03:00
file.c UBIFS: remove strange commentary 2011-05-13 19:23:55 +03:00
find.c UBIFS: introduce a separate structure for budgeting info 2011-05-13 19:23:53 +03:00
gc.c UBIFS: make 2 functions static 2011-05-16 10:31:39 +03:00
io.c UBIFS: remove unnecessary stack variable 2011-05-16 10:31:40 +03:00
ioctl.c userns: rename is_owner_or_cap to inode_owner_or_capable 2011-03-23 19:47:13 -07:00
journal.c UBIFS: improve space checking debugging feature 2011-05-13 19:23:54 +03:00
Kconfig UBIFS: do not select KALLSYMS_ALL 2011-04-05 10:45:45 +03:00
key.h
log.c UBIFS: do not free write-buffers when in R/O mode 2011-05-02 19:23:36 +03:00
lprops.c UBIFS: dump more in the lprops debugging check 2011-05-16 10:31:39 +03:00
lpt.c UBIFS: fix oops on error path in read_pnode 2011-04-05 10:40:31 +03:00
lpt_commit.c UBIFS: introduce lsave debugging 2011-05-13 19:23:54 +03:00
Makefile
master.c UBIFS: introduce a separate structure for budgeting info 2011-05-13 19:23:53 +03:00
misc.h
orphan.c UBIFS: fix minor stylistic issues 2011-05-13 19:23:53 +03:00
recovery.c UBIFS: improve debugging messages 2011-05-16 10:31:39 +03:00
replay.c UBIFS: simplify replay 2011-05-16 10:31:40 +03:00
sb.c UBIFS: fix a rare memory leak in ro to rw remounting path 2011-05-13 19:23:57 +03:00
scan.c UBIFS: remove double semicolon 2011-02-06 15:08:02 +02:00
shrinker.c
super.c UBIFS: fix a rare memory leak in ro to rw remounting path 2011-05-13 19:23:57 +03:00
tnc.c UBIFS: fix minor stylistic issues 2011-05-13 19:23:53 +03:00
tnc_commit.c UBIFS: make force in-the-gaps to be a general self-check 2011-05-13 19:23:54 +03:00
tnc_misc.c
ubifs-media.h UBIFS: use __packed instead of __attribute__((packed)) 2011-05-13 19:23:53 +03:00
ubifs.h UBIFS: introduce a separate structure for budgeting info 2011-05-13 19:23:53 +03:00
xattr.c UBIFS: make xattr operations names consistent 2011-05-13 19:23:54 +03:00