Home
last modified time | relevance | path

Searched hist:ae380ce04731579f45f27b3a84d7d8d8ee1f9b1b (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/fs/ubifs/
H A Ddebug.hdiff ae380ce04731579f45f27b3a84d7d8d8ee1f9b1b Thu May 19 06:13:16 CDT 2011 Artem Bityutskiy <Artem.Bityutskiy@nokia.com> UBIFS: lessen the size of debugging info data structure

This patch lessens the 'struct ubifs_debug_info' size by 90 bytes by
allocating less bytes for the debugfs root directory name. It introduces macros
for the name patter an length instead of hard-coding 100 bytes. It also makes
UBIFS use 'snprintf()' and teaches it to gracefully catch situations when the
name array is too short.

Additionally, this patch makes 2 unrelated changes - I just thought they do not
deserve separate commits: simplifies 'ubifs_assert()' for non-debugging case
and makes 'dbg_debugfs_init()' properly verify debugfs return code which may be
an error code or NULL, so we should you 'IS_ERR_OR_NULL()' instead of
'IS_ERR()'.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
H A Ddebug.cdiff ae380ce04731579f45f27b3a84d7d8d8ee1f9b1b Thu May 19 06:13:16 CDT 2011 Artem Bityutskiy <Artem.Bityutskiy@nokia.com> UBIFS: lessen the size of debugging info data structure

This patch lessens the 'struct ubifs_debug_info' size by 90 bytes by
allocating less bytes for the debugfs root directory name. It introduces macros
for the name patter an length instead of hard-coding 100 bytes. It also makes
UBIFS use 'snprintf()' and teaches it to gracefully catch situations when the
name array is too short.

Additionally, this patch makes 2 unrelated changes - I just thought they do not
deserve separate commits: simplifies 'ubifs_assert()' for non-debugging case
and makes 'dbg_debugfs_init()' properly verify debugfs return code which may be
an error code or NULL, so we should you 'IS_ERR_OR_NULL()' instead of
'IS_ERR()'.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>